package pile.customer.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import pile.customer.entity.ResponseResult;
import pile.customer.params.customerService.LoginDTO;
import pile.customer.service.ICustomerServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import pile.customer.entity.CustomerService;

import pile.customer.params.customerService.DeleDTO;
import pile.customer.params.customerService.ListDTO;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 郭天义
 * @since 2024-06-01
 */
@RestController
@RequestMapping("/customerService")
public class CustomerServiceController {

   @Autowired
   private ICustomerServiceService customerServiceService;

   /**
    *根据用户名  密码登录
    * @param loginDTO
    * @return
    */
   @PostMapping("/passwordLogin")
   public ResponseResult passwordLogin(@Validated @RequestBody LoginDTO loginDTO)  {
      return customerServiceService.passwordLogin(loginDTO);
   }


}
